import service from "../utils/request";
// 密码登录
export const userLogin = (data) => {
	return service.post('/admin-user/login', data);
};

//获取用户信息
export const getInfo = (data) => {
	return service.post('/admin-user/info', data);
};

// 获取用户条数
export const GetAppUserList = (data) => {
	return service.post('/admin-user/list', data);
}
// 获取admin用户
export const GetAdminUserList = (data) => {
	return service.post('/admin-user/adminUserList', data);
}

// 修改或编辑admin用户
export const SaveOrEditAdminUser = (data) => {
	return service.post('/admin-user/updateAdminUser', data);
}
// 修删除admin用户
export const delAdminUser = (id) => {
	return service.delete('/admin-user/admin/' + id);
}


// 修改或编辑app用户
export const SaveOrEditAppUser = (data) => {
	return service.post('/admin-user/updateAppUser', data);
}

//图片上传功能
export const upLoadImage = (data) => {
	return service.post('/api/v1/admin/upload', data);
};

/*
* 删除app用户
* */

export const DeleteAppUser = (id) => {
	return service.delete('/admin-user/' + id);
}

/**
 * 视频上传功能
 */
export const uploadVideo = (data) => {
	return service.post("/video-list/chunk", data)
}

/**
 * 合并切片
 */
export const merge = (data) => {
	return service.post("/video-list/merge", data)
}